package com.yuanfeng.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.activity.entity.ActivityPiecingTogetherMarkEntity;
import com.yuanfeng.activity.vo.GoodsPinTuanResultVO;
import com.yuanfeng.activity.vo.PintuanMarkMessageVO;
import com.yuanfeng.commoms.dto.job.ExpireMarkIdUpdateDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ActivityPiecingTogetherMarkMapper
 * @Description  拼团，团长标识-我的拼团
 * @Author cyp
 * @Date 2023-06-01 11:57:59
 * @Version 1.0
 **/
@Mapper
public interface ActivityPiecingTogetherMarkMapper extends BaseMapper<ActivityPiecingTogetherMarkEntity> {

    /**
     * 插入团长
     * @param markMessage
     */
     void insertPintuanMark(@Param("param")PintuanMarkMessageVO markMessage);

    /**
     * 更新团长信息
     * @param markMessage
     */
    void updateMarkMessage(@Param("param")PintuanMarkMessageVO markMessage);

    /**
     * 查询拼团信息
     * @param markId
     * @return
     */
    GoodsPinTuanResultVO queryPintByMarkId(@Param("markId")String markId);


    List<String> selectUnformedMarkId(@Param("pintuanId")Integer pintuanId);


    void updateMarkStatus(@Param("param") ExpireMarkIdUpdateDTO param);
}
